package com.it.a01staticdemo1;

public class student_test {
    public static void main(String[] args) {
        //1.创建第一个学生对象
        student.teacherName = "阿伟老师";//用类名调用
        student s1 = new student();
        s1.setName("张三");
        s1.setAge(20);
        s1.setGender("男");
        //s1.teacherName = "阿伟老师";

        s1.study();
        s1.show();

        //2.创建第二个学生对象
        student s2 = new student();
        s2.setName("lisi");
        s2.setAge(20);
        s2.setGender("女");

        s2.study();
        s2.show();
    }
}
